﻿using System;
using System.Data;

public class Video
{
	public Video()
	{
	}
    public static string SourceVideos()
    {
        Data data = new Data();
        DataTable table = data.GetTable_By_Name("Videos");
        string[] VideoID = new string[4];
        string[] VideoTieuDe = new string[4];
        string[] VideoLink = new string[4];
        int count = 4;
        string result = "";
        if (table.Rows.Count < 4)
        {
            count = table.Rows.Count;
        }
        for (int i = 0; i < count; i++)
        {
            VideoID[i] = table.Rows[i]["VideoID"].ToString();
            VideoTieuDe[i] = table.Rows[i]["VideoTieuDe"].ToString();
            VideoLink[i] = table.Rows[i]["VideoLink"].ToString();
        }
        return result;
    }
}
